package com.vito.framework.system.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;

import java.util.List;
import java.util.Map;

public interface MenuMapper extends BaseMapper<MenuBean> {
	MenuBean getMenuById(String menuId);

	List<MenuBean> getMenuList(Map<String, Object> paramMap);

	void insertMenu(MenuBean menuBean);

	void deleteOrgMenu(String menuId);

	void insertOrgMenu(Map<String, Object> map);

	Integer getMenuChildren(String parentMenu);

	void updateMenuUse(MenuBean menuBean);

	void insertSysRoleMenu(MenuBean menuBean);

	void updateMenu(MenuBean menuBean);

	void deleteRoleMenuInfoByOrgs(Map<String, Object> map);

	void deleteRoleMenuInfoById(Map<String, Object> map);

	List<RoleBean> getOrgResultList(String menuId);

	void deleteOrgMenuChildren(Map<String, Object> map);

	void deleteRoleMenu(Map<String, Object> map);

	void deleteMenu(Map<String, Object> map);

	List<MenuBean> getPmenuList(Map<String, Object> map);

	Integer countRoleMenuById(String menuId);
}
